<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>글쓰기</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$(form).submit(function(){	
		if($("input[name=id]").val()==""){
			alert("아이디를 입력해 주세요");
			return false;
		}
		if($("input[name=name]").val()==""){
			alert("성명를 입력해 주세요");
			return false;
		}
		if($("input[name=password]").val()==""){
			alert("패스워드를 입력해 주세요");
			return false;
		}
		if($("textarea[name=confirmpass]").val()==""){
			alert("글내용을 입력해 주세요");
			return false;
		}
		if($("textarea[name=tel]").val()==""){
			alert("전화번호를 입력해 주세요");
			return false;
		}
		if($("textarea[name=email]").val()==""){
			alert("이메일을 입력해 주세요");
			return false;
		}
		if($("textarea[name=questionPass]").val()==""){
			alert("질문을 입력하세요");
			return false;
		}
		if($("textarea[name=answerPass]").val()==""){
			alert("답변을 입력하세요");
			return false;
		}
		if($("textarea[name=originalPass]").val()==""){
			alert("사진등록  하세요");
			return false;
		}
		if($("textarea[name=saveFileName]").val()==""){
			alert("변경값을 입력하세요");
			return false;
		}
		if($("textarea[name=hopeSubject]").val()==""){
			alert("희망과목을 입력하세요");
			return false;
		}
		if($("textarea[name=zipcode]").val()==""){
			alert("우편번호를 입력하세요");
			return false;
		}
		if($("textarea[name=codeaddress]").val()==""){
			alert("주소를 검색하세요");
			return false;
		}
		if($("textarea[name=subaddress]").val()==""){
			alert("상세 주소를 입력하세요");
			return false;
		}
		/* alert($("#start").serialize());
		return false; */
		}) //form submit
	});//ready
</script>
</head>
<body>
<h3>학생 회원 가입</h3><br>
<form name="form" method="post" action="castingStudent.do">
	아이디: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name="id"><br>
	이름: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name="name"><br>
	패스워드: <input type="password" name="password"><br>
	비밀번호확인:<input type="password" name="confirmpass"><br>
	성별: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name="gender"><br>
	연락처: <input type="text" name="tel"><br>
	희망지역: <input type="text" name="hoperegion"><br>
	이메일: <input type="text" name="email"><br>
	비밀번호질문: <input type="text" name="questionpass"><br>
	비밀번호답변: <input type="text" name="answerpass"><br>
	개인사진등록 : <input type="text" name="originalfilename"><br>
						<input type="hidden" name="enrolldate">					
	희망과목: <input type="text" name="hopesubject"><br>
	우편번호: <input type="text" name="zipcode"><br>
	주소검색: <input type="text" name="codeaddress"><br>
	상세주소: <input type="text" name="subaddress"><br>
				<input type="hidden" name="withdrawaldate">
				<input type="submit" value="회원가입">
	<input type="hidden" name="membertype" value="s">
	
	
</form>

</body>
</html>